package com.xian.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xian.manage.mapper.PerformanceScheduleMapper;
import com.xian.manage.domain.PerformanceSchedule;
import com.xian.manage.service.IPerformanceScheduleService;

/**
 * 演出信息Service业务层处理
 * 
 * @author Hanys
 * @date 2025-04-07
 */
@Service
public class PerformanceScheduleServiceImpl implements IPerformanceScheduleService 
{
    @Autowired
    private PerformanceScheduleMapper performanceScheduleMapper;

    /**
     * 查询演出信息
     * 
     * @param id 演出信息主键
     * @return 演出信息
     */
    @Override
    public PerformanceSchedule selectPerformanceScheduleById(Long id)
    {
        return performanceScheduleMapper.selectPerformanceScheduleById(id);
    }

    /**
     * 查询演出信息列表
     * 
     * @param performanceSchedule 演出信息
     * @return 演出信息
     */
    @Override
    public List<PerformanceSchedule> selectPerformanceScheduleList(PerformanceSchedule performanceSchedule)
    {
        return performanceScheduleMapper.selectPerformanceScheduleList(performanceSchedule);
    }

    /**
     * 新增演出信息
     * 
     * @param performanceSchedule 演出信息
     * @return 结果
     */
    @Override
    public int insertPerformanceSchedule(PerformanceSchedule performanceSchedule)
    {
        return performanceScheduleMapper.insertPerformanceSchedule(performanceSchedule);
    }

    /**
     * 修改演出信息
     * 
     * @param performanceSchedule 演出信息
     * @return 结果
     */
    @Override
    public int updatePerformanceSchedule(PerformanceSchedule performanceSchedule)
    {
        return performanceScheduleMapper.updatePerformanceSchedule(performanceSchedule);
    }

    /**
     * 批量删除演出信息
     * 
     * @param ids 需要删除的演出信息主键
     * @return 结果
     */
    @Override
    public int deletePerformanceScheduleByIds(Long[] ids)
    {
        return performanceScheduleMapper.deletePerformanceScheduleByIds(ids);
    }

    /**
     * 删除演出信息信息
     * 
     * @param id 演出信息主键
     * @return 结果
     */
    @Override
    public int deletePerformanceScheduleById(Long id)
    {
        return performanceScheduleMapper.deletePerformanceScheduleById(id);
    }
}
